package com.text.day2_3;

import com.text.day2_1.Fish;

import java.util.Arrays;

public class JieKo {
    public static void main(String[] args) {
//        int[] arr = {4,3,4,61,5};
//        Arrays.sort(arr);
//        for (int i : arr) {
//            System.out.print(i + " ");
//        }
        FishJie fish1 = new FishJie("小鱼🐟", "鲨鱼", "男", 10, "海");
        FishJie fish2 = new FishJie("小鱼🐟", "鲨鱼", "男", 14, "海");
        FishJie fish3 = new FishJie("小鱼🐟", "鲨鱼", "男", 6, "海");
        FishJie[] fish = {fish1,fish2,fish3};
        for (FishJie fish4 : fish) {
            System.out.println(fish4);
        }
        Arrays.sort(fish);
        System.out.println("----------------------------------");
        for (FishJie fish4 : fish) {
            System.out.println(fish4);
        }

        FishJie fishi7 = fish1;
        fishi7.swimmimg();


    }
}
